#sh ./push.sh [commit 内容]

# 编译为静态文件
#echo "npm run build"
#npm run build
commit=$1
# 保存所有的修改
echo "执行命令：git add -A"
git add -A

# 把修改的文件提交
echo "执行命令：commit -m $commit"
git commit -m $commit

# 拉取最新代码
echo "执行命令：git pull origin master"
git pull origin master

# push
echo "执行命令：git push origin master"
git push origin master